package com.zeng.sys.authmd.servicemodule.convert;

import com.zeng.nicecore.convert.AbstractConvertor;
import com.zeng.nicecore.util.BeanUtil;
import com.zeng.sys.authmd.apimodule.vo.RolePermissionVo;
import com.zeng.sys.authmd.servicemodule.entity.RolePermission;


public class RolePermissionVoConvert implements AbstractConvertor<RolePermission, RolePermissionVo> {

    @Override
    public RolePermissionVo beanToVo(RolePermission rolePermission) {
        return BeanUtil.beanToVo(rolePermission, new RolePermissionVo());
    }

    @Override
    public RolePermission voToBean(RolePermissionVo rolePermissionVo) {
        return BeanUtil.VoToBean(rolePermissionVo, new RolePermission());
    }
}
